package com.moyun.finance.repository;

import com.moyun.finance.entity.OrgUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface OrgUserRepository extends JpaRepository<OrgUser,String>, JpaSpecificationExecutor<OrgUser> {
    OrgUser findByUserid(String userid);
    List<OrgUser> findByCompanyId(String companyId);
    List<OrgUser> findByCompanyIdAndUserNameLike(String companyId, String userName);
}
